Integrand size = 31, antiderivative size = 34 \[ \int \frac {\sec ^3(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {i \sec ^2(c+d x)}{2 a d}+\frac {\tan (c+d x)}{a d} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.194, Rules used = {3171, 3169, 3852, 8, 2686, 30} \[ \int \frac {\sec ^3(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=\frac {\tan (c+d x)}{a d}-\frac {i \sec ^2(c+d x)}{2 a d} \]
[In]
[Out]
Rule 8
Rule 30
Rule 2686
Rule 3169
Rule 3171
Rule 3852
Rubi steps \begin{align*} \text {integral}& = -\frac {i \int \sec ^3(c+d x) (i a \cos (c+d x)+a \sin (c+d x)) \, dx}{a^2} \\ & = -\frac {i \int \left (i a \sec ^2(c+d x)+a \sec ^2(c+d x) \tan (c+d x)\right ) \, dx}{a^2} \\ & = -\frac {i \int \sec ^2(c+d x) \tan (c+d x) \, dx}{a}+\frac {\int \sec ^2(c+d x) \, dx}{a} \\ & = -\frac {i \text {Subst}(\int x \, dx,x,\sec (c+d x))}{a d}-\frac {\text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{a d} \\ & = -\frac {i \sec ^2(c+d x)}{2 a d}+\frac {\tan (c+d x)}{a d} \\ \end{align*}
Time = 0.11 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.82 \[ \int \frac {\sec ^3(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {i \tan (c+d x) (2 i+\tan (c+d x))}{2 a d} \]
[In]
[Out]
Time = 0.59 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.68
method | result | size |
risch | \(\frac {2 i}{d a \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}\) | \(23\) |
derivativedivides | \(-\frac {i \left (\frac {\tan \left (d x +c \right )^{2}}{2}+i \tan \left (d x +c \right )\right )}{d a}\) | \(30\) |
default | \(-\frac {i \left (\frac {\tan \left (d x +c \right )^{2}}{2}+i \tan \left (d x +c \right )\right )}{d a}\) | \(30\) |
norman | \(\frac {\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d}-\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{a d}-\frac {2 i \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{a d}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{2}}\) | \(74\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 33, normalized size of antiderivative = 0.97 \[ \int \frac {\sec ^3(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=\frac {2 i}{a d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, a d e^{\left (2 i \, d x + 2 i \, c\right )} + a d} \]
[In]
[Out]
\[ \int \frac {\sec ^3(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=\frac {\int \frac {\sec ^{3}{\left (c + d x \right )}}{i \sin {\left (c + d x \right )} + \cos {\left (c + d x \right )}}\, dx}{a} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 108 vs. \(2 (30) = 60\).
Time = 0.22 (sec) , antiderivative size = 108, normalized size of antiderivative = 3.18 \[ \int \frac {\sec ^3(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=\frac {2 \, {\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {i \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {\sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}\right )}}{{\left (a - \frac {2 \, a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {a \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}}\right )} d} \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.79 \[ \int \frac {\sec ^3(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {i \, \tan \left (d x + c\right )^{2} - 2 \, \tan \left (d x + c\right )}{2 \, a d} \]
[In]
[Out]
Time = 24.35 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.74 \[ \int \frac {\sec ^3(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {\mathrm {tan}\left (c+d\,x\right )\,\left (-2+\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}{2\,a\,d} \]
[In]
[Out]